package com.lpf.ioc.entity;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;

@Slf4j
@Data
public class UserEntity {

    public UserEntity() {
        log.error("默认无参构造函数...");
    }

    public UserEntity(String userName, Integer age) {
        log.error("调用有参数构造函数 userName：" + userName + "，age：" + age);
        this.userName = userName;
        this.age = age;
    }

    private String userName;
    private Integer age;
}
